package InheritanceDemo;
// 父类: Person.java
public class Person {
    private String id;    // 人员编号
    private String name;  // 姓名

    // 构造方法
    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }

    // getter/setter方法
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    // 显示基本信息
    public void showBasicInfo() {
        System.out.println("编号：" + id + "，姓名：" + name);
    }
}